<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <style>

    </style>
</head>
<body>
<div id="app">

</body>
<!--引入axios和vue框架文件-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return {
                search: "", //输入框内容
            }
        },
        methods: {
            search() {
                axios.get
                let selected = document.getElementById("mySelect").value;
                if (selected == 1) {
                    axios.get("/selectFromArt?search=" + v.search()).then(function (response) {
                        v.articleArr = response.data;
                    })
                }
            }
        },

    })
</script>
</html>